<%= form_for(@barang) do |f| %>
  <% if @barang.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@barang.errors.count, "error") %> prohibited this barang from being saved:</h2>

      <ul>
      <% @barang.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :KodeBrg %><br />
    <%= f.text_field :KodeBrg %>
  </div>
  <div class="field">
    <%= f.label :NamaBrg %><br />
    <%= f.text_field :NamaBrg %>
  </div>
  <div class="field">
    <%= f.label :Inactive %><br />
    <%= f.number_field :Inactive %>
  </div>
  <div class="field">
    <%= f.label :NonInventory %><br />
    <%= f.number_field :NonInventory %>
  </div>
  <div class="field">
    <%= f.label :Paket %><br />
    <%= f.number_field :Paket %>
  </div>
  <div class="field">
    <%= f.label :Rak %><br />
    <%= f.text_field :Rak %>
  </div>
  <div class="field">
    <%= f.label :KodeDep %><br />
    <%= f.text_field :KodeDep %>
  </div>
  <div class="field">
    <%= f.label :KodeSup %><br />
    <%= f.text_field :KodeSup %>
  </div>
  <div class="field">
    <%= f.label :Unit %><br />
    <%= f.text_field :Unit %>
  </div>
  <div class="field">
    <%= f.label :HargaBeli %><br />
    <%= f.text_field :HargaBeli %>
  </div>
  <div class="field">
    <%= f.label :HargaPokok %><br />
    <%= f.text_field :HargaPokok %>
  </div>
  <div class="field">
    <%= f.label :DiscMax %><br />
    <%= f.text_field :DiscMax %>
  </div>
  <div class="field">
    <%= f.label :HargaGrosir %><br />
    <%= f.text_field :HargaGrosir %>
  </div>
  <div class="field">
    <%= f.label :HargaEceran %><br />
    <%= f.text_field :HargaEceran %>
  </div>
  <div class="field">
    <%= f.label :ProfitGrosir %><br />
    <%= f.text_field :ProfitGrosir %>
  </div>
  <div class="field">
    <%= f.label :ProfitEceran %><br />
    <%= f.text_field :ProfitEceran %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
